<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>类型转换</title>
    <style>
        h1{
            display: block;/* block块级元素 inline行内元素 inline-block行内块元素 none隐藏元素*/
            width: 200px;
            height: 200px;
            background-color: red;
        }
        h2{
            display: inline;
            width: 200px;
            height: 200px;
            background-color: aqua;/*行内元素无法设置宽高*/
        }
    </style>
</head>
<body>
    <h1>hhh1</h1>
    <h2>hhh2</h2>
</body>
</html>